package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_activity_guagifts_send", autoSave = true)
public class LogGuaGiftsSendGift {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "目标玩家ID")
    private long targetUserId;
    @FieldTypeAnnotation(desc = "花id")
    private int goodsId;
    @FieldTypeAnnotation(desc = "花数")
    private int goodsCount;
    @FieldTypeAnnotation(desc = "增加成就值")
    private int achieveAdd;
    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogGuaGiftsSendGift(int activityId, long userId, long targetUserId, int goodsId, int goodsCount, int achieveAdd) {
        this.activityId = activityId;
        this.userId = userId;
        this.targetUserId = targetUserId;
        this.goodsId = goodsId;
        this.goodsCount = goodsCount;
        this.achieveAdd = achieveAdd;
        this.time = new Date();
    }

    public long getTargetUserId() {
        return targetUserId;
    }

    public void setTargetUserId(long targetUserId) {
        this.targetUserId = targetUserId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(int goodsCount) {
        this.goodsCount = goodsCount;
    }

    public int getAchieveAdd() {
        return achieveAdd;
    }

    public void setAchieveAdd(int achieveAdd) {
        this.achieveAdd = achieveAdd;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
